package main

import (
	"encoding/json"
	"fmt"
	"io"
	"os"

	. "yuqueDownloader/entity"
	"yuqueDownloader/yuqueHandler"
)

func main() {

	file, _ := os.OpenFile(`D:\GoProjects\yuqueDownloader\Spring源码解析\json\000-oq4ggkz891zkiocb.json`, os.O_RDONLY, 0644)
	bytes, _ := io.ReadAll(file)

	var docData DocStruct
	json.Unmarshal(bytes, &docData)

	fmt.Printf("")

	// fmt.Printf("docData.Data.Content: %v\n", docData.Data.Content)

	toc := TocStruct{
		Title: docData.Data.Title,
	}

	yuqueHandler.HandleHtml(docData.Data.Content, &toc, nil)

}
